package com.platform.comm.common.batch.writer;

import com.platform.vo.ImportDto;
import com.platform.comm.common.batch.ComBatchContext;

import java.util.List;

/**
 * 系统管理批量导入
 * @author Tommy
 */
public class SysImpItemWriter extends BaseNcExcelWriter {
    private ComBatchContext context;

    public SysImpItemWriter(ComBatchContext context) {
        super(context);
        this.context = context;
    }

    @Override
    public void write(List<? extends ImportDto> items) {
        super.write(items);
    }

    @Override
    protected void validWrite(ImportDto item) {
        context.getComImportService().insertDto(context, item);
    }
}
